﻿using server.filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace serverTests.filters
{
    internal class SenderTestFilter : NetFilter
    {
        private byte[] data;

        public byte[] GetData()
        {
            return data;
        }

        private void SetData(byte[] value)
        {
            data = value;
        }

        public void invoke(object buffer, InvocationChain invocationChain)
        {
            SetData((byte[])buffer);
        }
    }
}
